package com.yiyuplatform.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Description
 * @Author dalong
 * @Date 2021-11-08
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
@Entity
@Table(name = "user_t_log")
public class UserTLog implements Serializable {
    private static final long serialVersionUID = 1941045128328421130L;

    /**
     * 记录uuid,插入时使用uuid()生成
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "L_ID")
    private String lId;

    /**
     * 用户id，外键
     */
    @Column(name = "L_USERID")
    private String lUserid;

    /**
     * 操作类型，登入/登出
     */
    @Column(name = "L_OPER_TYPE")
    private String lOperType;

    /**
     * 操作时间
     */
    @Column(name = "L_TIME")
    private Timestamp lTime;

}
